package com.situ.mall.basic;

public class Demo {
    public static void main(String[] args) {
        Person p1 = new Person(18);
        Person p2 = p1.clone();
        p2.age = 20;
        p2.arr[0] = 10;

        System.out.println(p1 == p2);//false
        System.out.println(p1.age);//18
        System.out.println(p1.arr[0]);//10
    }
}